package com.ttn.student.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttn.common.core.entity.studentrecord.LikeRecord;
import com.ttn.common.core.entity.studentrecord.vo.LikeRecordVO;
import com.ttn.student.mapper.LikeRecordMapper;
import com.ttn.student.service.LikeRecordService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LikeRecordServiceImpl extends ServiceImpl<LikeRecordMapper, LikeRecord> implements LikeRecordService {
    @Resource
    private LikeRecordMapper likeRecordMapper;

    @Override
    public List<LikeRecordVO> getLikeCount(List<Integer> studyRecordIds) {
        return likeRecordMapper.getLikeCount(studyRecordIds);
    }
}
